pack_file object
This method will close any pack file associated with the object.
bool close()
Parameters:
None.
Return value:
true on success, false on failure.
Remarks:
This method is executed automatically when the object is destroyed, so you need not worry about calling it to clean up after yourself at the end of your script for example. This method is also executed if you call either the create or open method on a pack_file object that already has a pack associated with it.
Example:
// Create a pack file and add some test files.
void main()
{
pack_file test;
test.create("pack.dat");
test.add_file("test1.txt","t1");
test.add_file("test2.txt","t2");
test.add_file("test3.txt","t3");
test.close();
}